package com.nut.course.demo;

public class A {

    private boolean flag = false;

    private int i;

    public synchronized void add(){
        i++;
    }
}
